package com.example.hhhh;

import java.io.Serializable;

/**
 * m门类型的判断deviceType优先，doorType辅助
 * <p>
 * 如deviceType == 1 表示优家园设备
 * 其doorType == 1 表示普通门（4G）
 * 其doorType == 2 表示蓝牙门
 * 如deviceType == 2，表示亲临科技的门
 * deviceType == 3，表示优家园新设备
 * deviceType == 20，表示二维码门
 * deviceType == 30，表示大豪蓝牙设备
 */
public class AccessInfo implements Serializable {



    /**
     * 门禁id
     */
    public int doorId;
    /**
     * 门禁名称
     */
    public String name;

    public String customizeName;

    public int getDoorId() {
        return doorId;
    }

    public void setDoorId(int doorId) {
        this.doorId = doorId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AccessInfo(int doorId, String name) {
        this.doorId = doorId;
        this.name = name;
    }

    public String getCustomizeName() {
        return customizeName;
    }

    public void setCustomizeName(String customizeName) {
        this.customizeName = customizeName;
    }

    public AccessInfo(int doorId, String name, String customizeName) {
        this.doorId = doorId;
        this.name = name;
        this.customizeName = customizeName;
    }

    @Override
    public String toString() {
        return "AccessInfo{" +
                "doorId=" + doorId +
                ", name='" + name + '\'' +
                ", customizeName='" + customizeName + '\'' +
                '}';
    }
}
